import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/ims/swiper/list',
    method: 'get',
    params
  })
}

export function createSwiper(data) {
  return request({
    url: '/ims/swiper/create',
    method: 'post',
    data
  })
}

export function swiperGet(id) {
  return request({
    url: '/ims/swiper/' + id,
    method: 'get'
  })
}

export function swiperDelete(id) {
  return request({
    url: '/ims/swiper/remove/' + id,
    method: 'get'
  })
}

export function updateSwiper(data) {
  return request({
    url: '/ims/swiper/update',
    method: 'post',
    data
  })
}

export function updateSwiperState(data) {
  return request({
    url: '/ims/swiper/updateState',
    method: 'post',
    data
  })
}
